package com.xm.shop.pojo.entity;

import io.swagger.annotations.ApiModel;

/**
 * @author ludi
 * @date:2020/8/31 22:30
 * @description:地址类
 */
@ApiModel("地址对象")
public class Address {
    private Integer addressId;
    private Integer UserId;
    private String detail;//详细地址
    private String name;
    private String phone;
    private Integer status=0;//地址状态 0为普通状态 1为默认状态

    public Address() {
    }

    public Address(Integer addressId, Integer userId, String detail,
                   String name, String phone, Integer status) {
        this.addressId = addressId;
        UserId = userId;
        this.detail = detail;
        this.name = name;
        this.phone = phone;
        this.status = status;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getUserId() {
        return UserId;
    }

    public void setUserId(Integer userId) {
        UserId = userId;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Address{" +
                "addressId=" + addressId +
                ", UserId=" + UserId +
                ", detail='" + detail + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", status=" + status +
                '}';
    }
}
